package com.chen.service;

import com.chen.dao.pojo.CourseRecord;
import com.chen.vo.Result;
import com.chen.vo.param.RecordParam;

/**
 * @Author:chenao
 * @DATE:2022/4/1 16:26
 */
public interface CourseRecordService {

    /**
     * 插入约课记录
     * @param courseRecord
     * @return
     */
    Result insertRecord(CourseRecord courseRecord);

    /**
     * 判断用户是否已经预约了该课程
     * @param userId
     * @param courseId
     * @return
     */
    Boolean isRecord(String userId,String courseId);

    Result getUserRecord(RecordParam param);
}
